home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
smaltalk
/
manchest.lha
/
MANCHESTER
/
manchester
/
4.1
/
textUpdates.st
< prev
next >
Wrap
Text File
|
1993-07-24
|
1KB
|
36 lines
" NAME textUpdates
AUTHOR miw@cs.man.ac.uk (Mario Wolczko)
FUNCTION removes annoying and redundant 'updated text' warnings
ST-VERSION 4.1
PREREQUISITES
CONFLICTS ParagraphEditor>textHasChanged
DISTRIBUTION world
VERSION 1
DATE 1993
SUMMARY As of 4.1, whenever you edit a text in a view, it is flagged
as changed, even if you undo the edit. Then, when you close the view
or change the selected text, you get a redundant warning, 'The text
showing has been altered. Do you wish to discard those changes?'
File this in, and they're history.
Mario Wolczko
Dept. of Computer Science Internet: mario@cs.man.ac.uk
The University uucp: uknet!!man.cs!!mario
Manchester M13 9PL JANET: mario@uk.ac.man.cs
U.K. Tel: +44-61-275 6146 (FAX: 6236)
______the mushroom project___________________________________
"
'From Objectworks\Smalltalk(R), Release 4.1 of 15 April 1992 on 24 June 1993 at 6:17:33 pm'!
!ParagraphEditor methodsFor: 'private'!
textHasChanged
"Answer whether the current text is the same as the initial text."
^textHasChanged and: [self text ~= view getContents]! !